-- GENERATED SPELL FOR [Mosshoof Courser] --


function spell0_8761(pUnit, Event) --@Enrage,Self--
pUnit:FullCastSpellOnTarget(8599,pUnit)
pUnit:RegisterEvent('Sorts_8761', 553, 1)
end

function Sorts_8761(pUnit, Event)
local choix_sorts_8761 = math.random(0, 0)
if choix_sorts_8761 == 0 then
pUnit:RegisterEvent('spell0_8761', 1, 1)
end
end

function mob8761_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_8761', math.random(1500, 3000), 1)
end

function mob8761_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob8761_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob8761_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(8761, 1, 'mob8761_Action')
RegisterUnitEvent(8761, 2, 'mob8761_Leave')
RegisterUnitEvent(8761, 3, 'mob8761_Kill')
RegisterUnitEvent(8761, 4, 'mob8761_Die')
